<h1>Metrics</h1>
<p class="description">
	Metrics are anything you want to track. They can be set up to monitor pretty much anything. To view the data collected, try creating a report for the metrics you wish to display.
</p>

<% if @metrics.empty? %>
	<p class="empty_list">You don't have any metrics</p>
<% else %>
	<ul id="metric_list" class="primary_list">
		<% for metric in @metrics do %>
			<li>
				<%= link_to metric do %>
					<h3><%= metric.name %></h3>
					<% if metric.last_measurement %>
						<p>last updated on : <%= metric.last_measurement.to_s(:short) %></p>
					<% else %>
						<p>Not run</p>
					<% end %>
				<% end %>
			</li>
		<% end %>
	</ul>
<% end %>

<p>
	<%= button_to "Track more stuff!", url_for(:action => :new), :method => :get %>
</p>